/*++****************************************************************************
*
*	Name:a2d.h
*   
*	Description:	This module provides defines and structures for the 
*					analog to digital input interface. 
*
*	Revision History:
*	Date	Who	Comments	
*	------	---	---------------------------------------------------------------
*	101121	RLP	Created 
****************************************************************************--*/

#ifndef A2D_H
#define A2D_H


/******************************************************************************
								CONSTANTS AND MACROS
******************************************************************************/

// MACROS

/******************************************************************************
								TYPEDEFS
******************************************************************************/

/******************************************************************************
								FUNCTION PROTOTYPES
******************************************************************************/

// Open device
extern void A2D_init( UINT16	chanMask );	// Analog channel mask

extern INT16 A2D_read(	int		chan,		// channel
						UINT16 *value );	// returned digital 10-bit value

/******************************************************************************
								ERROR CODES
******************************************************************************/

#define A2D_SUCCESS						0			// success
#define A2D_INVALID_CHAN				1			// invalid channel # (not 0-7)

#endif
